/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.cezary.butler.walili;

import pl.cezary.butler.walili.client.UserDataSource;
import pl.cezary.butler.walili.common.ILoginFacadeRemote;
import pl.cezary.butler.walili.server.LoginFacadeSpring;
import pl.cezary.butler.walili.server.Server;

/**
 *
 * @author Cezary Butler
 */
public class ServicesLocatorSpring implements IServicesLocator {
    static{
        Server.initSpringContext();
    }

    private static final ILoginFacadeRemote facade = new LoginFacadeSpring();

    private  ServicesLocatorSpring() {}
    
    public static IServicesLocator getInstance(UserDataSource ds){
        return new ServicesLocatorSpring();
    }
    
    @Override
    public ILoginFacadeRemote getLoginFacade() {
        return facade;
    }
    
}
